/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package oef15voertuig;

import java.util.Set;
import java.util.TreeSet;

/**
 *
 * @author Joris.Lefever
 */
public class NewMain {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Set<Voertuig> ts = new TreeSet<Voertuig>();
        ts.add(new Personenwagen("Joris Lefever",30690.0F, 250, 25.3F,"EHF257",4,3));
        ts.add(new Personenwagen("Jef Deelen",14599.0F, 105, 6.8F, "KLM099", 5, 5));
        ts.add(new Personenwagen("Karo boels",75690.0F, 150, 15.3F,"BFE357",4,5));
        ts.add(new Personenwagen("Theo Maassen",34599.0F, 155, 16.8F, "NHD624", 5, 2));
        ts.add(new Personenwagen("Jean Aerts",87690.0F, 230, 22.3F,"IUR146",3,3));
        ts.add(new Personenwagen("Marc Lestienne",36599.0F, 135, 8.8F, "KGD358", 4, 4));
        ts.add(new Vrachtwagen("Michel Dewolf",286599.0F, 440, 30.1F, "PRD441", 5980.0F));
        ts.add(new Vrachtwagen("Jan Declerck",354599.0F, 480, 23.1F, "SFG236", 6000.0F));
        ts.add(new Vrachtwagen("Christine Davidts",524599.0F, 240, 13.1F, "KED946", 8516.0F));
        ts.add(new Vrachtwagen("Wouter Haas",154599.0F, 340, 28.1F, "LZP376", 5418.0F));
        ts.add(new Vrachtwagen("Daniel Decrout",865599.0F, 450, 18.1F, "HEN749", 9853.0F));
        ts.add(new Vrachtwagen("Jacques Witmolen",444599.0F, 480, 13.1F, "PDK349", 7125.0F));
        
        for ( Object obj : ts) {
            Voertuig eenVoertuig = (Voertuig) obj;
            System.out.println(eenVoertuig);
        }
        
        
        //System.out.println();
        //System.out.println("Kyotoscore personenwagen 1: " + opel1.getKyotoScore());
        //System.out.println("Kyotoscore personenwagen 2: " + opel2.getKyotoScore());
        //System.out.println("Kyotoscore vrachtwagen 1: " + volvo1.getKyotoScore()); 
        //System.out.println("Kyotoscore vrachtwagen 2: " + volvo2.getKyotoScore()); 
        
        
        /*
        Vervuiler[] vervuilers = new Vervuiler[3];
        
        vervuilers[0] = new Personenwagen("Jan Klaasen",14599.0F, 105, 6.8F, "KLM099", 5, 5);
        vervuilers[1] = new Vrachtwagen("Michel Dewolf",214599.0F, 440, 33.1F, "PRD441", 6000.0F);
        vervuilers[2] = new Stookketel(7.5F);
        
        for (int i=0;i<vervuilers.length;i++){
            System.out.println("Dit is de vervuiling " + vervuilers[i].geefVervuiling());
        }
        
        // Oplossing met "enhanced loop"
        //for (Vervuiler vervuiler:vervuilers) { 
        //  System.out.println("vuil: "+ vervuiler.geefVervuiling() );
        //}
        
        Privaat[] privaat = new Privaat[3];
        
        privaat[0] = new Personenwagen("Jan Klaasen",14599.0F, 105, 6.8F, "KLM099", 5, 5);
        privaat[1] = new Vrachtwagen("Michel Dewolf",214599.0F, 440, 33.1F, "PRD441", 6000.0F);
        privaat[2] = new Vrachtwagen("Test",214599.0F, 440, 33.1F, "GES598", 6000.0F);
        
        for (Privaat eenPrivaat:privaat) { 
            eenPrivaat.geefPrivateData();
        }
        
        Milieu[] milieu = new Milieu[3];
        
        milieu[0] = new Personenwagen("Jan Klaasen",14599.0F, 105, 6.8F, "KLM099", 5, 5);
        milieu[1] = new Vrachtwagen("Michel Dewolf",214599.0F, 440, 33.1F, "PRD441", 6000.0F);
        milieu[2] = new Vrachtwagen("Test",214599.0F, 440, 33.1F, "GES598", 6000.0F);
        
        for (Milieu eenMilieu:milieu) { 
            eenMilieu.geefMilieuData();
        }
        */
        
    }
}
